<?php
/* Debug only */
@ini_set('display_errors', 'on');

/* Improve PHP configuration to prevent issues */
ini_set('upload_max_filesize', '100M');
ini_set('default_charset', 'utf-8');
ini_set('magic_quotes_runtime', 0);

/* correct Apache charset (except if it's too late */
if (!headers_sent())
	header('Content-Type: text/html; charset=utf-8');

require_once(dirname(__FILE__).'/settings.inc.php');
require_once(dirname(__FILE__).'/defines.inc.php');
require_once(dirname(__FILE__).'/autoload.php');

$baseUri = preg_replace('#/+#', '/', str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'])).'/');
define('_BASE_URI_', $baseUri);
